package com.ex.constants;

/**
 * <h1>通用枚举类信息</h1>
 */
public enum Constants {

    ADD_SUCCESS(1, "添加成功"),
    ADD_FAILD(2, "添加失败"),
    DELETE_SUCCESS(3, "删除成功"),
    DELETE_FAILD(4, "删除失败"),
    UPDATE_SUCCESS(5, "修改成功"),
    UPDATE_FAILD(6, "修改失败"),
    FIND_SUCCESS(7, "查询成功"),
    FIND_FAILD(8, "查询失败");

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 信息描述
     */
    private String desc;

    Constants(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
